package com.xms.security.service.dataauth;

import com.xms.core.enums.AccessRightValue;
import com.xms.security.entity.RoleEntityPermission;

import java.util.List;
import java.util.UUID;

/**
 * <p>
 * IRoleEntitypermissionService
 * </p>
 *
 * @author migo
 * @since 2021/9/6
 */
public interface IRoleEntityPermissionService {
    RoleEntityPermission getUserPermission(String entityName, UUID userid, AccessRightValue access);

    List<RoleEntityPermission> getUserPermissions(String entityName, UUID userid);

    List<RoleEntityPermission> getRolePermissions(List<UUID> entityIds, List<UUID> roleIds, AccessRightValue access);
}
